<article class="page-container">
	<form class="layui-form" action="<{:url('shenhe/orders','id='.$id)}>">
	  <div class="layui-form-item">
	    <label class="layui-form-label">审核</label>
	    <div class="layui-input-block">
		    <{volist name='orders_status' id='v'}>
		  		<input type="radio"  lay-filter='s' name="status" value="<{$key}>" title="<{$v}>" <{if condition="$info['status'] eq $key"}>checked=true<{/if}> />
			<{/volist}>	  	
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">备注</label>
	    <div class="layui-input-block">
	       <textarea name="note" class="layui-textarea" lay-verify="required" placeholder="请输入内容"><{$info['action_note']}></textarea>
	    </div>
	  </div>
	  
	  <div class="layui-form-item">
	    <div class="layui-input-block">
	      <button class="layui-btn" lay-submit lay-filter="form">提交</button>
	      <button class="layui-btn layui-btn-primary" onClick="c_close(this);" >关闭</button>
	    </div>
	  </div>
	</form>
</article>
<script>
$().ready(function(){
	form.on('radio(s)', function(data){
		var v = data.value;
		var msg = '';
		switch(v){
			case '0': msg = '初始化';break;
			case '1': msg = '审核通过';break;
			case '2': msg = '审核驳回';break;
			case '3': msg = '计划完结';break;
		}
		$("[name='note']").text(msg);
	});  
});
</script>